package com.day47.mapper;

import com.day47.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 咕唧
 * @Date 2022/5/12 10:33
 * @Version 1.0
 */
public interface UserMapper {
    List<User> findAll();

    User findOne(@Param("id") Integer id);

    List<User> findByName (@Param("name") String name);

    void insertUser(@Param("user") User user);

    void updateUserById(@Param("user") User user);

    void deleteById(@Param("id") Integer id);

    List<User> findByIdAndNameAndPassword(@Param("user") User user);

    List<User> findUserAndDesc();
}
